// /////////////////////////////////////////////////////////////////////////////
//
// Name:            InitState.cpp
// Author:          Michael Bartsch (ZCCdark203)
//
// Desc :           The InitState class is the first state the GameManager
//                  initialises. This class was created to separate initial
//                  state loading from the GameManager code. Additionally you
//                  can also use the InitState as a template for your custom
//                  states.
//
// License:         Copyright (C) 2009 Michael Bartsch and Contributors
//
//                  This program is free software: you can redistribute it
//                  and/or modify it under the terms of the zlib/libpng License.
//                  See main.cpp for conditions of distribution and use.
//
// /////////////////////////////////////////////////////////////////////////////

// Include files
#include "InitState.h"
#include "../core/GameManager.h"


// InitState class
// InitState constructor.
InitState::InitState()
{
}

// InitState deconstructor.
InitState::~InitState()
{
}

// Initialises the InitState class.
void InitState::init()
{
    IGUIEnvironment *pGUI = GameManager::Instance()->getGUIEnvironment();

    IGUIWindow *window = pGUI->addWindow(rect<s32>(256, 320, 768, 448), true, L"Welcome to Sirrf");
    window->getCloseButton()->setVisible(false);

    pGUI->addStaticText(L"You have properly configured and compiled the framework. The framework has been compiled with:\n\n"
                        L"- Irrlicht\n"
#ifdef __COMPILE_WITH_ANGELSCRIPT__
                        L"- AngelScript\n"
#endif // __COMPILE_WITH_ANGELSCRIPT__
#ifdef __COMPILE_WITH_SFML_AUDIO__
                        L"- SFML-Audio\n"
#endif // __COMPILE_WITH_SFML_AUDIO__
                        L"\nYou are now ready to start building your application.", rect<s32>(10, 30, 400, 100), false, true, window);
}

// Clears the InitState class.
void InitState::clear()
{
}

// Updates the InitState class.
void InitState::update(f32 deltaTime)
{
}

// Renders the InitState class.
void InitState::render()
{
}

// End of File
